package dm.service;

import dm.bsi.Container;
import dm.bsi.Deployment;
import dm.bsi.Service;
import indi.zjh.dp.db.Session;

public interface Manager {
	/**
	 * 判断服务是否正常运行
	 * @param container
	 * @return: true, false
	 * @throws Exception
	 */
	public void process(Session session, Deployment deployment, Service service) throws Exception;
	
	/**
	 * 在状态机里去判断容器应用的状态, 状态异常则抛出异常
	 * @param session
	 * @param deployment
	 * @param container
	 * @throws Exception
	 */
	public void ping(Session session, Deployment deployment, Container container) throws Exception;
}
